# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Thomas S Hatch <thatch45@gmail.com>
# Contributor: Jelle van der Waa <jelle@vdwaa.nl>

pkgname=python-pymongo
pkgver=4.6.0
pkgrel=1
pkgdesc='Python module for using MongoDB'
arch=('loong64' 'x86_64')
license=('Apache')
url='https://pypi.python.org/pypi/pymongo/'
depends=('python')
makedepends=('python-setuptools')
optdepends=('python-pyopenssl: for [ocsp]'
            'python-requests: for [ocsp]'
            'python-service-identity: for [ocsp]'
            'python-snappy: for [snappy]'
            'python-zstandard: for [zstd]'
            'python-dnspython: for [srv]')
source=("https://pypi.io/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
sha512sums=('c295affc8af8a678056a8b6995a046625be2b3b4bbe49896b3a3c3ea8a2dbc170a51ed9971ee2a23efea0c9d75912de572e42e868676e8f96a230fa0e54c597a')

build() {
  cd pymongo-$pkgver
  python setup.py build
}

package() {
  cd pymongo-$pkgver
  python setup.py install --root="$pkgdir" --skip-build --optimize=1
}

# vim:set ts=2 sw=2 et:
